package com.cxy.service.imp;

import com.cxy.mapper.CustomerMapper;
import com.cxy.pojo.Customer;
import com.cxy.service.UserService;
import com.cxy.utils.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class UserServiceImpl implements UserService {

    @Override
    public List<Customer> getCustomerLikeName(String name) {

        SqlSession sqlSession = MybatisUtil.getSqlSession();
        CustomerMapper customerMapper = sqlSession.getMapper(CustomerMapper.class);
        return customerMapper.getCustomerLikeName(name);
    }
}
